package org.eztouch.sys.facade;

import java.util.List;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.eztouch.sys.entity.SysMenu;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 微服务接口类
 */
@Api(value = "系统菜单服务")
public interface SysMenuService {
	static final String prefixPath = "/sysMenu";
	
	@ApiOperation(value = "添加菜单信息")
	@RequestMapping(value=prefixPath+"/insert",method=RequestMethod.POST)
	SysMenu insert(@RequestBody SysMenu sysMenu);
	
	@ApiOperation(value = "根据菜单ID真正的删除菜单信息")
	@RequestMapping(value = prefixPath+"/deleteById" ,method = RequestMethod.GET)
	boolean deleteById(@RequestParam(value="id") String id);
	
	@ApiOperation(value = "根据菜单ID逻辑删除菜单信息")
	@RequestMapping(value = prefixPath+"/flagDeleteById" ,method = RequestMethod.GET)
	boolean flagDeleteById(@RequestParam(value="id") String id);
	
	@ApiOperation(value = "根据菜单ID更新菜单信息")
	@RequestMapping(value=prefixPath+"/updateById",method=RequestMethod.POST)
	SysMenu updateById(@RequestBody SysMenu sysMenu);
	
	@ApiOperation(value = "根据菜单ID获取菜单信息")
	@RequestMapping(value = prefixPath+"/selectById" ,method = RequestMethod.GET)
	SysMenu selectById(@RequestParam(value="id") String id);
	
	@ApiOperation(value = "根据角色IDS获取菜单列表")
	@RequestMapping(value = prefixPath+"/selectListByRoleIds" ,method = RequestMethod.GET)
	List listByRoleIds(@RequestParam(value="roleIds")String roleIds);
	
}
